<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flow_instance_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-flow_instance_id" data-source="csmitsm/flow/instance/index" class="form-control selectpage" name="row[flow_instance_id]" type="text" value="{$row.flow_instance_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operate')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-operate" data-rule="required" class="form-control selectpicker" name="row[operate]">
                {foreach name="operateList" item="vo"}
                    <option value="{$key|htmlentities}" {in name="key" value="$row.operate"}selected{/in}>{$vo|htmlentities}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('From_fstatuscode')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-from_fstatuscode" class="form-control" name="row[from_fstatuscode]" type="text" value="{$row.from_fstatuscode|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('From_fstatusname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-from_fstatusname" class="form-control" name="row[from_fstatusname]" type="text" value="{$row.from_fstatusname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Target_fstatuscode')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-target_fstatuscode" class="form-control" name="row[target_fstatuscode]" type="text" value="{$row.target_fstatuscode|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Target_fstatusname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-target_fstatusname" class="form-control" name="row[target_fstatusname]" type="text" value="{$row.target_fstatusname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Toaudit_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-toaudit_user_id" data-source="csmitsm/toaudit/user/index" class="form-control selectpage" name="row[toaudit_user_id]" type="text" value="{$row.toaudit_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trace_submittime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_submittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[trace_submittime]" type="text" value="{:$row.trace_submittime?datetime($row.trace_submittime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trace_depart_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_depart_id" data-source="csmitsm/trace/depart/index" class="form-control selectpage" name="row[trace_depart_id]" type="text" value="{$row.trace_depart_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trace_company_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_company_id" data-source="csmitsm/trace/company/index" class="form-control selectpage" name="row[trace_company_id]" type="text" value="{$row.trace_company_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trace_admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_admin_id" data-source="csmitsm/trace/admin/index" class="form-control selectpage" name="row[trace_admin_id]" type="text" value="{$row.trace_admin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trace_admin_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-trace_admin_name" class="form-control" name="row[trace_admin_name]" type="text" value="{$row.trace_admin_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flowfieldjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[flowfieldjson]">
                <dd>
                    <ins>{:__('Key')}</ins>
                    <ins>{:__('Value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[flowfieldjson]" class="form-control hide" cols="30" rows="5">{$row.flowfieldjson|htmlentities}</textarea>
            </dl>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fullflowfieldjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[fullflowfieldjson]">
                <dd>
                    <ins>{:__('Key')}</ins>
                    <ins>{:__('Value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[fullflowfieldjson]" class="form-control hide" cols="30" rows="5">{$row.fullflowfieldjson|htmlentities}</textarea>
            </dl>


        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>